<template>

  <div>
    <h2>没完成，后台好像不需要</h2>

    <el-form ref="form" :model="form" label-width="120px">


    <el-form-item label="对应商品" >
      <el-input class="width" v-model="form.id"></el-input>
    </el-form-item>


    <el-form-item label="对应商品" >
      <el-input class="width" v-model="form.id"></el-input>
    </el-form-item>

    <el-form-item>
      <el-button type="primary" @click="onSubmit">立即创建</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form>

  </div>
</template>

<script>
  // import { getList } from '@/api/table'
  import {  } from '@/api/server-refund'

  export default {
    data() {
      return {
        form: {
          id: '',
        }

      }
    },
    created() {
      this.fetchData()
    },
    methods: {
      onSubmit() {
        console.log(this.fileApi);
        console.log(this.form.id);
        advertisingPost(this.fileApi,this.form.id,function(msg){
          alert("回来");
          console.log(msg);
        })

      },

      //自动刷新
      fetchData() {
        // this.listLoading = true
        // getList().then(response => {
        //   this.list = response.data.items
        //   this.listLoading = false
        // })
      }
    }
  }
</script>

<style>
  .width{
    width: 260px;
  }
</style>
